import request from './axios'

export const getSwipe = () => {
  return request({
    url: '/banner?type=2',
    method: 'GET',
  })
}

export const getMusicList = () => {
    return request({
      url: '/personalized?limit=10',
      method: 'GET',
    })
  }
  export function getMusicItemList(data){
    return request({
        method:"GET",
        url:`/playlist/detail?id=${data}`
    })
}
//获取歌单的所有歌曲
export function getItemList(data){
    return request({
        method:"GET",
        url:`/playlist/track/all?id=${data.id}&limit=${data.limit}&offset=${data.offset}`
    })
}
//获取歌曲的歌词
export function getMusicLyric(data){
    return request({
        method:"GET",
        url:`/lyric?id=${data}`
    })
}